package com.salou.cellar.activity.helpers;

/**
 * a repartition on a field eg "label", displays the number of occurences
 * for a given value for this field, eg "rouge" = 72.
 * 
 * @author Loic
 */
public class StatisticsData {
	public String field;
	public String fieldValue;
	public long numberOfValues;

	public StatisticsData(String field, String fieldValue,
			long numberOfValues) {
		super();
		this.field = field;
		this.fieldValue = fieldValue;
		this.numberOfValues = numberOfValues;
	}

	@Override
	public String toString() {
		return fieldValue + ": " + numberOfValues;
	}

}